﻿<%@ Page Title="Modella" Language="C#" MasterPageFile="~/Views/Shared/Site.Mobile.Master"
    Inherits="System.Web.Mvc.ViewPage<ASPItalia.ModelVirtualCasting.Web.Models.ProfileModel>" %>

<%@ Import Namespace="ASPItalia.ModelVirtualCasting.Web.Utils" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <a href="#" data-rel="back">Back</a>
    <h1>
        <%: this.Model.Person.NickName %>
    </h1>
    <%: Html.ActionLink("Gallery...", "Gallery", new { id = this.Model.Person.ID }, new { rel="external" })%>
</asp:Content>
<asp:Content ID="content2" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        <%:this.Html.DisplayFor(c=> c.Person.FirstName) %>
        <%:this.Html.DisplayFor(c=> c.Person.LastName) %>
    </h2>
    <div>
        Viene da
        <%:this.Html.DisplayFor(c=> c.Person.NationalityCountry) %>
        / Vive in
        <%:this.Html.DisplayFor(c=> c.Person.ResidenceCountry) %>
    </div>
    <div class="image">
        <img src="<%=this.Model.Person.Multimedia.OfType<ASPItalia.ModelVirtualCasting.ObjectModel.Image>().First().FileName.ToAbsoluteUrl() %>" />
    </div>
</asp:Content>
